import request from '@/utils/request'

// 获取院校列表
export function getAcademyList(params) {
  return request({
    url: '/hce/school/list.do',
    method: 'GET',
    params,
  })
}

// 新增院校信息
export function addAcademyInfo(data) {
  return request({
    url: '/hce/school/add.do',
    method: 'POST',
    data,
  })
}

// 修改院校信息
export function updateAcademyInfo(data) {
  return request({
    url: '/hce/school/update.do',
    method: 'POST',
    data,
  })
}
// 删除院校信息
export function deleteAcademyInfo(params) {
  return request({
    url: '/hce/school/remove.do',
    method: 'GET',
    params,
  })
}

// 院校所在地列表
export function getAreaList() {
  return request({
    url: '/hce/common/getAreaList.do',
    method: 'GET',
  })
}

// 院校类别列表
export function academyTypeList() {
  return request({
    url: '/hce/common/getSchoolTypeList.do',
    method: 'GET',
  })
}

// 相关证书列表
export function getTypeNameList() {
  return request({
    url: '/hce/certificate/getNameList.do',
    method: 'GET',
  })
}
